package com.ordobill.webapp.common;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.XMLConfiguration;

public class Config {

	public static String CALLBACK_URL = "callbackurl";

	private static Config conf = null;
	private XMLConfiguration config = null;
	
	private Config() {
		try {
			config = new XMLConfiguration("app-config.xml");
		} catch (ConfigurationException ce) {
			ce.printStackTrace();
		}
	}
	
	public static Config getInstance() {
		if (conf == null)
			conf = new Config();
		return conf;
	}
	
	public String getString(String key) {
		return config.getString(key);
	}
}
